#ifndef __EBML_ERROR_H__
#define __EBML_ERROR_H__

typedef int EBMLRES;

#define EBML_OK						0
#define EBML_FAIL					-1
#define EBML_INVALID_PARAMETER		-2
#define EBML_ERROR_IO_MODE			-3
#define EBML_FILE_NOT_OPENED		-4
#define EBML_FILE_IO_ERROR			-5
#define EBML_END_OF_FILE			-6
#define EBML_INVALID_ID_LENGTH		-7
#define EBML_INVALID_VINT			-8
#define EBML_INVALID_ELEMENT		-9
#define EBML_INVALID_ELEMENT_SIZE	-10
#define EBML_ELEMENT_NOT_FOUND		-11
#define EBML_UNKNOWN_ELEMENT_ID		-12
#define EBML_UNMATCH_ID_LENGTH		-13
#define EBML_IS_NOT_TOP_ELEMENT		-14
#define EBML_INVALID_DATA_LENGTH	-15
#define EBML_REACH_LAST_CHILD		-16
#define EBML_NOT_CHILD_OF_MASTER	-17
#define EBML_UNKNOW_ELEMENT_NAME	-18
#define EMBL_ELEMENT_DATA_NOT_SET	-19

#endif //__EBML_ERROR_H__